package com.twu.biblioteca;


import java.io.*;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

public class Book {
    private int bookID;
    private String bookAuthor;
    private String bookName;
    private String bookPublisher;
    private String yearPublished;
    private String bookEdition;
    private List<Book> books;

    public Book(int bookID, String bookAuthor, String bookName, String bookPublisher, String yearPublished, String bookEdition) {
        this.bookID = bookID;
        this.bookAuthor = bookAuthor;
        this.bookName = bookName;
        this.bookPublisher = bookPublisher;
        this.yearPublished = yearPublished;
        this.bookEdition = bookEdition;
    }

    public int getBookID() {
        return bookID;
    }

    public String getBookAuthor() {
        return bookAuthor;
    }

    public String getBookName() {
        return bookName;
    }

    public String getBookPublisher() {
        return bookPublisher;
    }

    public String getYearPublished() {
        return yearPublished;
    }

    public String getBookEdition() {
        return bookEdition;
    }

    @Override
    public String toString() {
        return
                "Book ID=" + bookID +
                        ",Author=" + bookAuthor +
                        ", Name=" + bookName +
                        ", Publisher=" + bookPublisher +
                        ", Published=" + yearPublished +
                        ", Edition=" + bookEdition;

    }

    public void addBook(Book book) {
        books.add(book);
    }
}
